package fw.communication.api;

/**
 * ProtocolDataMessage defined a message taht is send to and from the M2M2 server
 * 
 * @author Andrei Penchev
 */
public class ProtocolDataMessage {
	
    private String messageData;
	private String protocolName;
	private String uriBrokerAddress;
	private String contentType;
	
    public ProtocolDataMessage(String messageData, String protocolName,
			String urlAddress, String contentType) {
		super();
		this.messageData = messageData;
		this.protocolName = protocolName;
		this.uriBrokerAddress = urlAddress;
		this.contentType = contentType;
	}

	public String getMessageData() {
		return messageData;
	}
    
	public void setMessageData(String messageData) {
		this.messageData = messageData;
	}
	
	public String getProtocolName() {
		return protocolName;
	}
	
	public void setProtocolName(String protocolName) {
		this.protocolName = protocolName;
	}
	
	public String getUriBrokerAddress() {
		return uriBrokerAddress;
	}
	
	public void setUriBrokerAddress(String uriBrokerAddress) {
		this.uriBrokerAddress = uriBrokerAddress;
	}
	
	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}
	
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("ProtocolData[messageData=");
		sb.append(messageData + " ; protocolName= ");
		sb.append(protocolName + " ; contentType= ");
		sb.append(contentType + " ; uriBrokerAddress= ");
		sb.append(uriBrokerAddress + " ] ");
		return sb.toString();
	}
	
}
